package org.xshop.service;

import java.util.Map;

import org.xshop.bean.Order;
import org.xshop.bean.OrderPay;
import org.xshop.model.TOrder;

import top.ibase4j.core.base.BaseService;

/**
 * <p>
 *   服务类
 * </p>
 *
 * @author ShenHuaJie
 * @since 2018-05-11
 */
public interface ITOrderService extends BaseService<TOrder> {

    TOrder updateOrderInfo(TOrder record);

    TOrder create(Order record, Boolean... extraArgs);

    Long deleteOrder(Long id);

    TOrder pay(OrderPay record);

    Object createPayOrder(Long orderId, String payType, String ip);

    Object queryAll(Map<String, Object> param);

    Object updateFromDelete(Map<String, Object> param);

    Integer countNewOrder(Integer second);
}